![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
parallax-controller
Advanced tools
Readme
Core classes and controller for creating parallax scrolling effects.
This package was created for react-scroll-parallax, but can be used as a standalone lib.
Create the parallax controller first:
const controller = ParallaxController.init();
Then create an element with animation effects as props:
controller.createElement({
elOuter: document.getElementById('outer'),
elInner: document.getElementById('inner'),
props: {
translateY: [-100, 100],
opacity: [0.4, 1],
},
});
<div id="outer">
<div id="inner">
<!-- children -->
</div>
</div>
A number of techniques are used to keep scrolling optimized:
getBoundingClientRect()
) are cached and only updated when layout may change.requestAnimationFrame
is used to apply all scroll effects.transform
and opacity
are allowed.will-change
is added to an element based on animation effects to prevent paints.If you have ideas to further optimize scrolling please PR or post an issue.
It's up to you to make sure you use this package appropriately. Here's some suggestions for usage while maintaining good UX:
FAQs
Core classes and controller for creating parallax scrolling effects
The npm package parallax-controller receives a total of 33,457 weekly downloads. As such, parallax-controller popularity was classified as popular.
We found that parallax-controller demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.